package io.renren.modules.api.service;

import io.renren.modules.api.entity.UserCouponsEntity;
import io.renren.modules.api.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author wangdajiang
 * @email 2750757088@qq.com
 * @date 2018-03-09 11:56:40
 */
public interface UserCouponsService {
	
	UserCouponsEntity queryObject(Long id);
	
	List<UserCouponsEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(UserCouponsEntity userCoupons);
	
	void update(UserCouponsEntity userCoupons);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	boolean isUserHaveCoupon(UserEntity user,Long couponid);

	UserCouponsEntity queryObjectByUserIdAndCouponId(Long userId,Long couponid);


}
